def _get_screen_size():
    from PyQt6.QtWidgets import QApplication
    app = QApplication([])
    return app.primaryScreen().size()


background_path = "resource/image/background"
figure_path = "resource/image/figure"
character_path = "resource/image/character"
card_path = "resource/image/card"

screen_width, screen_height = _get_screen_size().width(), _get_screen_size().height()

combat_field_w_scale = 0.5
combat_field_h_scale = 0.6
combat_field_w = int(screen_width * combat_field_w_scale)
combat_field_h = int(screen_height * combat_field_h_scale)
combat_field_x = int((screen_width - combat_field_w) / 2)
combat_field_y = int((screen_height - combat_field_h) / 2)
combat_field_h_along = int(combat_field_h / 7)

player_me_h = int(screen_height * (1 - combat_field_h_scale) / 2)
player_me_w = int(player_me_h / 5 * 6)
player_me_x = 0
player_me_y = int(screen_height - player_me_h)
player_me_remain_w = int(screen_width - player_me_w)
player_me_equip_w = int(player_me_remain_w / 10)
player_me_hand_card_w = int(player_me_remain_w / 5 * 3)

player_h = player_me_h
player_w = player_me_w
player_x = 0
player_y = 0
player_equip_w = player_me_equip_w

logger_x = 50
logger_y = player_h + 50
logger_w = combat_field_x - logger_x - 50
logger_h = player_me_y - logger_y - 50

card_h = player_me_h
card_w = int(card_h / 1.41)
